package edu.sctu.zcy.month201505.day20150520;


/**
 * Created by user24 on 2015/5/20.
 */

public class SetInfo {

    TeaCher[] teaChers = new TeaCher[3];

    Student[] student1 = new Student[3];
    Student[] student2 = new Student[3];
    Student[] student3 = new Student[3];


    //int studentID,StringOne name,StringOne score,int age,StringOne sex,StringOne address)

    public Student[] setStudent1(){

        for (int i = 0; i < student1.length; i++) {

            Student student = new Student(123+i,"周春艳"+i,55+i,20+i,"女"+i,"资阳"+i);

            student1[i] = student;
        }
      return student1;

    }

    public Student[] setStudent2(){

        for (int i = 0; i < student2.length; i++) {

            Student student = new Student(1234+i,"郑森文"+i,59+i,12+i,"女","攀枝花"+i);

            student2[i] = student;
        }
        return student2;

    }

    public Student[] setStudent3(){

        for (int i = 0; i < student2.length; i++) {

            Student student = new Student(1234+i,"杨旭"+i,78+i,24+i,"男","绵阳"+i);

            student3[i] = student;
        }
        return student3;

    }

    public TeaCher[] setTeacher1(){

        teaChers[0] = new TeaCher(12,"黄开","副教授","java编程","男",setStudent1());
        teaChers[1] = new TeaCher(14,"冯凯平","教授","计算机基础","男",setStudent2());
        teaChers[2] = new TeaCher(13,"许文","讲师","大学数学","女",setStudent3());

        return teaChers;

    }
}
